<?php
/**
 * 货币视图控制器
 */
namespace app\manage\controller\coin;

use app\manage\controller\Base;


class Show extends Base
{

    public function index(){
        
        // 页面信息
        $pageData = ['title'=>'系统货币管理'];

        $this->assign('pageData',$pageData);
        return view();
    }

    public function convert(){
        
        // 页面信息
        $pageData = ['title'=>'货币转换设置'];

        $this->assign('pageData',$pageData);
        $this->assign('configType','convert');
        return view();
    }

    public function transfer(){
        
        // 页面信息
        $pageData = ['title'=>'货币转账设置'];

        $this->assign('pageData',$pageData);
        $this->assign('configType','transfer');
        return view();
    }

    public function withdraw(){
        
        // 页面信息
        $pageData = ['title'=>'货币提现设置'];

        $this->assign('pageData',$pageData);
        $this->assign('configType','withdraw');
        return view();
    }

    public function charge(){
        
        // 页面信息
        $pageData = ['title'=>'货币充值设置'];

        $this->assign('pageData',$pageData);
        $this->assign('configType','charge');
        return view();
    }

    public function register(){
        
        // 页面信息
        $pageData = ['title'=>'注册获取'];

        $this->assign('pageData',$pageData);
        $this->assign('configType','register');
        return view();
    }

    public function active(){

        $agentTypes = \app\common\model\AgentType::agentTypeData();
        // 页面信息
        $pageData = ['title'=>'激活配置'];

        $this->assign('pageData',$pageData);
        $this->assign('configType','active');
        $this->assign('agentTypes','agentTypes');
        return view();
    }

}
